/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.seguradora.exception;

import br.com.seguradora.view.ErrorsList;

/**
 *
 * @author Diego Freire
 */
public class InputValidationException extends GeneralException {

    private ErrorsList errorsList;

    public InputValidationException(ErrorsList errorsList) {
        this.errorsList = errorsList;
    }

    public InputValidationException() {
        super();
    }

    public ErrorsList getErrorsList() {
        return errorsList;
    }
    
    public int countErrors() {
        return errorsList.countErrors();
    }
}
